//
//  UIView+Supplement.h
//  Snigger
//
//  Created by Young on 16/8/16.
//  Copyright © 2016年 Smile. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (Supplement)

@property (nonatomic) CGFloat top;
@property (nonatomic) CGFloat bottom;
@property (nonatomic) CGFloat left;
@property (nonatomic) CGFloat right;

@property (nonatomic) CGFloat width;
@property (nonatomic) CGFloat height;
@property (nonatomic) CGFloat centerX;
@property (nonatomic) CGFloat centerY;
@property (nonatomic) CGSize size;
@property (nonatomic) CGPoint origin;
@property (nonatomic) CGFloat tx;
@property (nonatomic) CGFloat ty;

@property (nonatomic, strong, readonly, nullable) UIView *lastSubviewOnX;
@property (nonatomic, strong, readonly, nullable) UIView *lastSubviewOnY;

- (nullable UIViewController *)viewController;

@end
